Class Guide extends Box
public static var self;
public static var items;

var body;
function Guide(){
	GuideAid.init();
	Me.self=this;
	G.stage.addChild(this);
	this.setSize("f","f");
	this.addChild([
		[{dim:"body",pos:[0,140,"f","f-150"],scroll:true,relative:1}],
		[{pos:[0,0,"f",70],bg:["#f6f6f6",[,"#ccc"]]},
			[["DreamJS","#000",30],{pos:[30,"c"]}],
			[Button,{pos:["r",0,70,69],bg:["#f6f6f6"],type:3},
				[{pos:["c","c",40,40],bg:[,["2#888"],"shape",
					[4,1],[24,1],[34,13],[34,39],[4,39],[4,1],0,[24,1],[24,13],[34,13],0
				]}],
			]
		],
		[new TabBar(["实例","文档","圈子"]),{pos:[0,70]}],
	]);
	var arr=Me.items[0];
	for(var i=0;i<arr.length;i++){
		var a=arr[i];
		this.body.addChild([
			[Button,{id:i,name:"cell",w:"f",h:70,bg:["#fff",[,"#ccc"]],type:3,arrow:true},
				[[a[1]+"("+a[0]+")"],{pos:[50,"c"]}]
			]
		]);	
	}
	G.main.setY(80);
	G.main.setH(G.h-80);
}
function onButtonClick(){
	if(G.target.name=="cell"){
		Me.self.setX(G.w);
		new GuideInfo(G.target.id);
	}
}